package com.dps.omc.strategy;

import java.util.Map;

import com.dps.omc.model.AgentNode;
import com.dps.omc.model.TemplateHandler;
import com.dps.omc.strategy.handler.IStepHandler;


/**
 * @author lp 创建于 2015年7月1日
 */
public class StepParser implements IStep{

	private TemplateHandler step;
	private IStepHandler handle;
	
	public StepParser(TemplateHandler step,IStepHandler handle)
	{
		this.step = step;
		this.handle = handle;
	}
	
	public void process(AgentNode agentNode, Map<String,String> data, StepChain stepChain)
	{
		handle.process(agentNode,data, step);
		stepChain.process(agentNode,data, stepChain);
	}
}
